package com.lingdian.member.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.lingdian.member.bean.Member;

@Repository("memberRepository")
public interface MemberRepository extends CrudRepository<Member,String>{
	
	Page<Member> findByRealName(String realName,Pageable pageable);
	Member findByloginNameAndPassword(String loginName,String password);
}
